import React from "react";
import { isAuth } from "@/utils/index";

const RequireAuth = ({ children }: { children: JSX.Element }) => {
  if (!isAuth()) {
    console.log("未登录");
    return <div>未登录 </div>;
  }
  return children;
};
export { RequireAuth };
